package com.lb.design.pattern.decorator.v1;

/**
 * @author lb
 * @Title: BattercakeWithEgg
 * @Description: TODO
 * @date 2019/03/19  16:54
 */
public class BattercakeWithEgg extends Battercake{
    @Override
    protected String getBattercake() {
        return super.getBattercake() + "一个鸡蛋";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 1;
    }
}
